<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: src/libs/fileext/html/html.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('html_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">html.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="html_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;../../pugixml/pugixml.hpp&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;../fileext.hpp&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacehtml.html">html</a> {</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classhtml_1_1_html.html">   29</a></span>&#160;<span class="keyword">class </span><a class="code" href="classhtml_1_1_html.html">Html</a>: <span class="keyword">public</span> <a class="code" href="classfileext_1_1_file_extension.html">fileext::FileExtension</a> {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <a class="code" href="classhtml_1_1_html.html#a459361654191a94a7739fc93b48d9cba">Html</a>(<span class="keyword">const</span> std::string&amp; fileName);</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classhtml_1_1_html.html#a7e4b04c0c7e6aa561ad7d9dd8254cb2a">~Html</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classhtml_1_1_html.html#ae591cf91903e507eca6a5fa447ad0f84">convert</a>(<span class="keywordtype">bool</span> addStyle = <span class="keyword">true</span>, <span class="keywordtype">bool</span> extractImages = <span class="keyword">false</span>, <span class="keywordtype">char</span> mergingMode = 0) <span class="keyword">override</span>;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classhtml_1_1_html.html#ad525413963924bf0f47e59f6e19acb1f">ireplaceAll</a>(std::string&amp; str, <span class="keyword">const</span> std::string&amp; from, <span class="keyword">const</span> std::string&amp; to) <span class="keyword">const</span>;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classhtml_1_1_html.html#a474a536399a8597c4fee7992260c3e44">imatch</a>(<span class="keyword">const</span> std::string&amp; haystack, <span class="keyword">const</span> std::string&amp; needle, <span class="keywordtype">int</span> start = 0) <span class="keyword">const</span>;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="classhtml_1_1_html.html#a3bd84f0ae4b357955c003a37afa0aa1c">ifind</a>(<span class="keyword">const</span> std::string&amp; haystack, <span class="keyword">const</span> std::string&amp; needle, <span class="keywordtype">int</span> start = 0) <span class="keyword">const</span>;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classhtml_1_1_html.html#ad653659859ec911ca0009c03e5d67c04">deleteMerging</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classhtml_1_1_html.html#a070afb2d679b7a220529c27dbc6137d5">getImages</a>();</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classhtml_1_1_html.html#a281fff33e8dc138afe7c8086adfe9c56">convertEncoding</a>(std::string&amp; page) <span class="keyword">const</span>;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classhtml_1_1_html.html#a28992beed178e6723770c9b5a3406cc5">  122</a></span>&#160;    std::string <a class="code" href="classhtml_1_1_html.html#a28992beed178e6723770c9b5a3406cc5">m_data</a>;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;};</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;}  <span class="comment">// End namespace</span></div><div class="ttc" id="classhtml_1_1_html_html_a3bd84f0ae4b357955c003a37afa0aa1c"><div class="ttname"><a href="classhtml_1_1_html.html#a3bd84f0ae4b357955c003a37afa0aa1c">html::Html::ifind</a></div><div class="ttdeci">size_t ifind(const std::string &amp;haystack, const std::string &amp;needle, int start=0) const</div><div class="ttdoc">Case insensitive searching of position of first occurrence of substring. </div><div class="ttdef"><b>Definition:</b> html.cpp:142</div></div>
<div class="ttc" id="classhtml_1_1_html_html_ad525413963924bf0f47e59f6e19acb1f"><div class="ttname"><a href="classhtml_1_1_html.html#ad525413963924bf0f47e59f6e19acb1f">html::Html::ireplaceAll</a></div><div class="ttdeci">void ireplaceAll(std::string &amp;str, const std::string &amp;from, const std::string &amp;to) const</div><div class="ttdoc">Case insensitive replacement of all occurrences of substring. </div><div class="ttdef"><b>Definition:</b> html.cpp:122</div></div>
<div class="ttc" id="classhtml_1_1_html_html_a459361654191a94a7739fc93b48d9cba"><div class="ttname"><a href="classhtml_1_1_html.html#a459361654191a94a7739fc93b48d9cba">html::Html::Html</a></div><div class="ttdeci">Html(const std::string &amp;fileName)</div><div class="ttdef"><b>Definition:</b> html.cpp:35</div></div>
<div class="ttc" id="classhtml_1_1_html_html_a7e4b04c0c7e6aa561ad7d9dd8254cb2a"><div class="ttname"><a href="classhtml_1_1_html.html#a7e4b04c0c7e6aa561ad7d9dd8254cb2a">html::Html::~Html</a></div><div class="ttdeci">virtual ~Html()=default</div></div>
<div class="ttc" id="namespacehtml_html"><div class="ttname"><a href="namespacehtml.html">html</a></div><div class="ttdoc">Wrapper for HTML files. </div></div>
<div class="ttc" id="classhtml_1_1_html_html_a474a536399a8597c4fee7992260c3e44"><div class="ttname"><a href="classhtml_1_1_html.html#a474a536399a8597c4fee7992260c3e44">html::Html::imatch</a></div><div class="ttdeci">bool imatch(const std::string &amp;haystack, const std::string &amp;needle, int start=0) const</div><div class="ttdoc">Case insensitive matching of substring. </div><div class="ttdef"><b>Definition:</b> html.cpp:133</div></div>
<div class="ttc" id="classhtml_1_1_html_html_a28992beed178e6723770c9b5a3406cc5"><div class="ttname"><a href="classhtml_1_1_html.html#a28992beed178e6723770c9b5a3406cc5">html::Html::m_data</a></div><div class="ttdeci">std::string m_data</div><div class="ttdef"><b>Definition:</b> html.hpp:122</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html"><div class="ttname"><a href="classfileext_1_1_file_extension.html">fileext::FileExtension</a></div><div class="ttdoc">Base class for file extensions converters. </div><div class="ttdef"><b>Definition:</b> fileext.hpp:32</div></div>
<div class="ttc" id="classhtml_1_1_html_html_ae591cf91903e507eca6a5fa447ad0f84"><div class="ttname"><a href="classhtml_1_1_html.html#ae591cf91903e507eca6a5fa447ad0f84">html::Html::convert</a></div><div class="ttdeci">void convert(bool addStyle=true, bool extractImages=false, char mergingMode=0) override</div><div class="ttdoc">Convert file to HTML-tree. </div><div class="ttdef"><b>Definition:</b> html.cpp:38</div></div>
<div class="ttc" id="classhtml_1_1_html_html_a070afb2d679b7a220529c27dbc6137d5"><div class="ttname"><a href="classhtml_1_1_html.html#a070afb2d679b7a220529c27dbc6137d5">html::Html::getImages</a></div><div class="ttdeci">void getImages()</div><div class="ttdoc">Get images (extract local files or download from url) </div><div class="ttdef"><b>Definition:</b> html.cpp:202</div></div>
<div class="ttc" id="classhtml_1_1_html_html"><div class="ttname"><a href="classhtml_1_1_html.html">html::Html</a></div><div class="ttdoc">Wrapper for HTML files. </div><div class="ttdef"><b>Definition:</b> html.hpp:29</div></div>
<div class="ttc" id="classhtml_1_1_html_html_ad653659859ec911ca0009c03e5d67c04"><div class="ttname"><a href="classhtml_1_1_html.html#ad653659859ec911ca0009c03e5d67c04">html::Html::deleteMerging</a></div><div class="ttdeci">void deleteMerging() const</div><div class="ttdoc">Delete colspans and rowspans in tables. </div><div class="ttdef"><b>Definition:</b> html.cpp:154</div></div>
<div class="ttc" id="classhtml_1_1_html_html_a281fff33e8dc138afe7c8086adfe9c56"><div class="ttname"><a href="classhtml_1_1_html.html#a281fff33e8dc138afe7c8086adfe9c56">html::Html::convertEncoding</a></div><div class="ttdeci">void convertEncoding(std::string &amp;page) const</div><div class="ttdoc">Convert page encoding to UTF-8. </div><div class="ttdef"><b>Definition:</b> html.cpp:236</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_87a455bccb09a92130c26a11a880c98a.html">libs</a></li><li class="navelem"><a class="el" href="dir_ffbcd8de0e3a98e11beaf3347bc22514.html">fileext</a></li><li class="navelem"><a class="el" href="dir_002dc414379c775ef9db9bfe4d801d72.html">html</a></li><li class="navelem"><a class="el" href="html_8hpp.html">html.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
